<script type="text/javascript" >
    sttheme.load_tooltip();
    sttheme.on_submitform('#settingForm', function(){
        sttheme.loadPage('footer', '', '<?php _e("Successful", $config['plugin_name']) ?>');
    });

</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
        <form class="stform" id="settingForm" action="<?php echo admin_url('/admin.php?page=' . $config['theme_name'] . '&action=' . $current_action) ?>" method="post" >
            <br clear="both" />
            <ul>

               
                <li>
                    <label><?php _e('Left category', $config['theme_name']) ?>:</label>
                    <div>
                        <select name="data[left_cat]"  class="widefat">
                            <?php
                            $category_ids = get_all_category_ids();
                            foreach ($category_ids as $row) {
                                $cat_name = get_cat_name($row);
                                ?>
                                <option value="<?php echo $row ?>" <?php echo $option['left_cat'] == $row ? 'selected' : '' ?>><?php echo $cat_name; ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </li>
               <li>
                    <label><?php _e('Middle category', $config['theme_name']) ?>:</label>
                    <div>
                        <select name="data[middle_cat]"  class="widefat">
                            <?php
                            $category_ids = get_all_category_ids();
                            foreach ($category_ids as $row) {
                                $cat_name = get_cat_name($row);
                                ?>
                                <option value="<?php echo $row ?>" <?php echo $option['middle_cat'] == $row ? 'selected' : '' ?>><?php echo $cat_name; ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </li>
                <li>
                    <label><?php _e('Right category', $config['theme_name']) ?>:</label>
                    <div>
                        <select name="data[right_cat]"  class="widefat">
                            <?php
                            $category_ids = get_all_category_ids();
                            foreach ($category_ids as $row) {
                                $cat_name = get_cat_name($row);
                                ?>
                                <option value="<?php echo $row ?>" <?php echo $option['right_cat'] == $row ? 'selected' : '' ?>><?php echo $cat_name; ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </li>
                 <li>
                    <label><?php _e('Facebook link', $config['theme_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $option['fb_link'] ?>" class="" name="data[fb_link]"  type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                 <li>
                    <label><?php _e('Twitter link', $config['theme_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $option['tw_link'] ?>" class="" name="data[tw_link]"  type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                  <li>
                    <label><?php _e('Youtube link', $config['theme_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $option['yt_link'] ?>" class="" name="data[yt_link]"  type="text"/>
                    </div>
                    <br clear="both" />
                </li>
               
                <li>
                    <label><?php _e('Big Youtbue link', $config['theme_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $option['byt_link'] ?>" class="" name="data[byt_link]"  type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <input type="submit" value="Submit"/>
                </li>


            </ul>
        </form>
    </div>
</div>